﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zad6
{
    class Program
    {
        static void Main()
        {
            int[] collection = { 21, 3, 7, 63, 8, 9};
            var listCollection = collection.ToList();
            var divBy7And3 = listCollection.FindAll(x => (x % 7 == 0 && x % 3 == 0));
            foreach (var item in divBy7And3)
            {
                Console.WriteLine(item);
            }
        }
    }
}
